﻿@using System.Web.Configuration
@using Quadrant.web.Helpers
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    @*<link rel="apple-touch-icon" href="@Url.Content("~/Images/touch-icon-iphone.png")" />
        <link rel="apple-touch-icon" sizes="72x72" href="@Url.Content("~/Images/touch-icon-ipad.png")" />
        <link rel="apple-touch-icon" sizes="114x114" href="@Url.Content("~/Images/touch-icon-iphone-retina.png")" />
        <link rel="apple-touch-icon" sizes="144x144" href="@Url.Content("~/Images/touch-icon-ipad-retina.png")" />*@
    <link rel="SHORTCUT ICON" type="image/x-icon" href="@Url.Content("~/Images/quadrant_ico_32.png")" />
    <title>@ViewBag.Title - Quadrant</title>
    @Styles.Render("~/Content/css")
    @RenderSection("head", false)
    @Scripts.Render("~/bundles/modernizr")
    <script type="text/javascript">
        var appInsights = window.appInsights || function (config) {
            function s(config) { t[config] = function () { var i = arguments; t.queue.push(function () { t[config].apply(t, i) }) } } var t = { config: config }, r = document, f = window, e = "script", o = r.createElement(e), i, u; for (o.src = config.url || "//az416426.vo.msecnd.net/scripts/a/ai.0.js", r.getElementsByTagName(e)[0].parentNode.appendChild(o), t.cookie = r.cookie, t.queue = [], i = ["Event", "Exception", "Metric", "PageView", "Trace"]; i.length;) s("track" + i.pop()); return config.disableExceptionTracking || (i = "onerror", s("_" + i), u = f[i], f[i] = function (config, r, f, e, o) { var s = u && u(config, r, f, e, o); return s !== !0 && t["_" + i](config, r, f, e, o), s }), t
        }({
            instrumentationKey: "@WebConfigurationManager.AppSettings["InstrumentationKey"]"
        });

        window.appInsights = appInsights;
        appInsights.trackPageView();
    </script>
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', '@WebConfigurationManager.AppSettings["GoogleAnalytics"]', '@(Request.IsLocal ? "none" : "auto")');
    </script>

</head>
<body>
    @Html.CompressedPartial("_MenuSide")
    <div class="container-fluid body-content">
        @RenderBody()
    </div>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bts")
    @Scripts.Render("~/bundles/app")
    @RenderSection("scripts", false)
    <script type="text/javascript">
        BaseHelpers = new Base.Helpers();
        $(document).ready(function () {
            window.CurrentBasePage && window.CurrentBasePage.Ready();
            @RenderSection("PageReady", false);
        });
    </script>
</body>
</html>
